package com.macaque.base.entity;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/***************************************************************
 * Name:        Entity     
 * Create At:   2011-10-22
 * Module:      base model
 * Description: [Entity for to string]
 * Author       zhaowentao
 * ------------------------------------------------------------
 * update history
 * seq  date  update user   reason
 * 1
 * 2
***************************************************************/
public class Entity implements Serializable {

	private static final long serialVersionUID = 1L;

	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.DEFAULT_STYLE);
	}

	public boolean equals(Object o) {
		return EqualsBuilder.reflectionEquals(this, o);
	}

	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

}
